From: Florian Müllner Date: Thu, 22 Oct 2020 19:09:35 +0000 (+0200) Subject: telepathyClient: Promisify the right class X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~774 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f5d1a2858d2a54f0344648ead219c553cd482737;p=gnome-shell.git telepathyClient: Promisify the right class send_message_async() is a method of TpTextChannel, not the generic TpChannel parent class. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3226 --- diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index b51bedc4c..0c9514e2b 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -9,7 +9,7 @@ try { ({ TelepathyGLib: Tp, TelepathyLogger: Tpl } = imports.gi); Gio._promisify(Tp.Channel.prototype, 'close_async', 'close_finish'); - Gio._promisify(Tp.Channel.prototype, + Gio._promisify(Tp.TextChannel.prototype, 'send_message_async', 'send_message_finish'); Gio._promisify(Tp.ChannelDispatchOperation.prototype, 'claim_with_async', 'claim_with_finish');